
// function dianji() {
//     console.log(123);
//     document.name01.action = "https://fanyi.baidu.com/?name=dhfs#zh/en/" + document.querySelector('#hzq').value;
// }


function baidu() {
    var inputword = document.getElementById("hzq").value;
    // location.href = "https://www.baidu.com/s?wd=" + inputword;
    window.open("https://www.baidu.com/s?wd=" + inputword);
}

function translate01() {
    console.log("点击");
    var inputword01 = document.getElementById("hzq").value;
    // location.href = "https://fanyi.baidu.com/?name=dhfs#zh/en/" + inputword;
    window.open("https://fanyi.baidu.com/?name=dhfs#zh/en/" + inputword01);
    console.log(inputword01);

}
// -------------------------
var wechat = document.querySelector('#wechat_icon');
var wechat_code = document.querySelector('#bianry_code_wechat');
wechat.onmouseover = function () {
    wechat_code.style.display = 'inline';
    console.log("你好");
}
wechat.onmouseout = function () {
    wechat_code.style.display = "none";
    console.log("你好!!");
}
// =--------------------------

// --------------------------
var qq = document.querySelector('#qq_icon');
var qq_binary_code = document.querySelector('#binary_qq_code');
qq.onmouseover = function () {
    qq_binary_code.style.display = 'inline';
    console.log("你好");
}
qq.onmouseout = function () {
    qq_binary_code.style.display = "none";
    console.log("你好!!");
}